import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from "axios"

Vue.config.productionTip = false

//配置axios
// axios.defaults.baseURL="http://127.0.0.1:5050"
Vue.prototype.axios=axios

//跳转页面后返回顶部
router.afterEach((to,from,next)=>{
  window.screenTop(0,0);
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
